package com.wmyg.scanninggun;

import com.wmyg.scanninggun.sdk.ManageBuilder;
import com.wmyg.scanninggun.sdk.SmartManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
//@EnableKafka
public class ScanninggunApplication {

    public static void main(String[] args) {
        SpringApplication.run(ScanninggunApplication.class, args);
    }

    @Bean
    public SmartManager buildSmartManager() throws Exception {
        return ManageBuilder.buildManagerToUse("south", "User1", "antifake", "developchannel");
    }

}
